# Contributor:
# Maintainer:
pkgname=py3-cppy
pkgver=1.2.1
pkgrel=3
pkgdesc="Collection of C++ headers for writing Python C extensions"
url="https://github.com/nucleic/cppy"
arch="noarch"
license="BSD-3-Clause"
makedepends="py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel"
subpackages="$pkgname-pyc"
source="https://github.com/nucleic/cppy/archive/$pkgver/py3-cppy-$pkgver.tar.gz"
builddir="$srcdir/cppy-$pkgver"

build() {
	export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 tests/test_getting_include_dir.py
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/cppy*.whl
}

sha512sums="
f6493830a8a66f52fff7c592db9d255fd7178ba320faee6a96258f29b6f299ffeca83f001650390b05c1037eb1350b0bd4da701d77a7bcb1a1babc108b7b8f97  py3-cppy-1.2.1.tar.gz
"
